﻿#ifndef SYSPROTOCOLEDITOR_H
#define SYSPROTOCOLEDITOR_H
#include "systemparamdef.h"
namespace Ui {
class SysProtocolEditor;
}

//增加主协议界面

class SysProtocolEditor : public QWidget
{
    Q_OBJECT

public:
    explicit SysProtocolEditor(QWidget *parent = nullptr);
    ~SysProtocolEditor();

    void InitSysProtocolEditor(int nType,int nId = -1,const QString sInfo = "");
    //void EditorSysProtocolFile(int nSysId,const QString sMsg);


signals:
    void on_CreateSysProtocol(int,const QString);   //新建系统协议信号
    void on_EditorSysProtocol(int,const QString,int);    //编辑系统协议信号
private slots:
    void on_EenterBtn_clicked();
    void on_QuitBtn_clicked();


private:
    Ui::SysProtocolEditor *ui;
    int nWindType;
    int nOldSysId;
};

#endif // SYSPROTOCOLEDITOR_H
